<template is="msgItem1">
	<view class="content">
		
		<view class="success">
			
			<view class="list" v-for="(vo,index) in list" :key="index" >
				<view class="type" v-if="vo.status == '-2'">删除作废</view>
				<view class="type" v-if="vo.status == '-1'">审核失败</view>
				<view class="type" v-if="vo.status == '0'">申请中</view>
				<view class="type" v-if="vo.status == 1">审核成功</view>
				<view class="type" v-if="vo.status == 2">提现成功</view>
				<view class="whole">
					<view class="money">￥{{vo.money}}</view>
					<view class="time">{{vo.create_time}}</view>
				</view>
			</view>
			
			
		</view>
		
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				token:"",
				list:"",
			};
		},
		onShow() {
			uni.request({
			    url: _self.$url + '/api/withdrawals/withdrawalsList', 
				method:"post",
			    data: {
			       
			    },
				header: {
					'token': _self.token 
				},
			    success: (res) => {
					_self.list = res.data.result.data
					console.log(_self.list)
			    }
			});
		},
		onLoad() {
			var _self = this
			
			const value = uni.getStorageSync('userinfo');
			if (value) {
				_self.token = value.token
			}
			
			uni.request({
			    url: _self.$url + '/api/withdrawals/withdrawalsList', 
				method:"post",
			    data: {
			       
			    },
				header: {
					'token': _self.token 
				},
			    success: (res) => {
					_self.list = res.data.result.data
					console.log(_self.list)
			    }
			});
		},
		
		methods: {
			
		}
	}
</script>

<style lang="scss">
	body{
		background: #fafafa;
		font-size: 14px;
	}
	view{
		box-sizing: border-box;
	}
	.success{
		margin-top:50rpx;
		.list{
			background: #fff;
			width: 90%;
			margin:0 auto 20rpx auto;
			padding:25rpx 40rpx;
			border-radius: 5px;
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
		}
		.time{
			color:#999999;
		}
	}
</style>
